package io.vov.vitamio.entity;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

/**
 * 在线电视源地址
 * 
 * @author lichuan
 */
@DatabaseTable(tableName = "OnlineVideoSource")
public class OnlineVideoSource {

	/**
	 * ID
	 */
	@DatabaseField(generatedId = true)
	// 自增长的主键
	private int id;

	/**
	 * 对应电视台num
	 */
	@DatabaseField
	public String sourcenum;

	/**
	 * 视频播放源地址
	 */
	@DatabaseField
	private String link;
	/**
	 * 源地址视频宽
	 */
	@DatabaseField
	private int width;

	/**
	 * 源地址视频高
	 */
	@DatabaseField
	private int height;

	/**
	 * 比特率
	 */
	@DatabaseField
	private int bitrate;

	/**
	 * 是否最后观看的节目
	 */
	@DatabaseField
	public boolean isLastWatch = false;

	/**
	 * 是否最后观看的节目
	 */
	@DatabaseField
	public boolean defaultLink = false;
	
	public OnlineVideoSource() {
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getSourcenum() {
		return sourcenum;
	}

	public void setSourcenum(String sourcenum) {
		this.sourcenum = sourcenum;
	}

	public String getLink() {
		return link;
	}

	public void setLink(String link) {
		this.link = link;
	}

	public int getWidth() {
		return width;
	}

	public void setWidth(int width) {
		this.width = width;
	}

	public int getHeight() {
		return height;
	}

	public void setHeight(int height) {
		this.height = height;
	}

	public int getBitrate() {
		return bitrate;
	}

	public void setBitrate(int bitrate) {
		this.bitrate = bitrate;
	}

	public boolean isLastWatch() {
		return isLastWatch;
	}

	public void setLastWatch(boolean isLastWatch) {
		this.isLastWatch = isLastWatch;
	}

	public boolean isDefaultLink() {
		return defaultLink;
	}

	public void setDefaultLink(boolean defaultLink) {
		this.defaultLink = defaultLink;
	}
	
}
